/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.noteuser.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户增删改查Entity
 * @author liyutg
 * @version 2017-07-26
 */
public class NoteUser extends DataEntity<NoteUser> {
	
	private static final long serialVersionUID = 1L;
	private String user;		// user_id
	private String userName;		// user_name
	private String userPassword;		// user_password
	
	public NoteUser() {
		super();
	}

	public NoteUser(String id){
		super(id);
	}

	@Length(min=1, max=10, message="user_id长度必须介于 1 和 10 之间")
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	@Length(min=1, max=20, message="user_name长度必须介于 1 和 20 之间")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@Length(min=1, max=50, message="user_password长度必须介于 1 和 50 之间")
	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	
}